﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OutPage_Edit.aspx.cs" Inherits="SysManage_OutPage_Edit" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
 <title>外网菜单编辑</title>
    <base target ="_self" />
        <link rel="stylesheet" href="../css/css.css"  type="text/css" />
    <!--#include file="../JS/KeyControlCode.js"-->
    <!--#include file="../JS/TrimData.js"--> 
    <!--#include file="../JS/TDTextBoxControl.js"-->
        <script language="javascript" type="text/javascript">     
     function matchStationId(obj)
			{
				SysManage_UserManage_User_Group_Edit.getMatchStation(obj,CallBack);
			}
			function CallBack(response)
			{
				var matchddl = form1.DbRoleName;
				matchddl.options.length = 0;
				if(response.value!=null )
				{
					for(var i=0;i<response.value.length;++i)
					{
						var arry=response.value[i].split("|")
						var no = new Option();						
						no.value = arry[0];
						no.text = arry[1];
						matchddl.options.add(no);
						if(i==0)
						{
						    form1.HAjaxDropID.value = arry[0];
						}
					}
				}
			}			
			function selectthis(sel1)
			{
				form1.HAjaxDropID.value = sel1.options[sel1.selectedIndex].value;
			}
    </script> 

</head>
<body leftmargin ="0" rightmargin ="0" topmargin ="0"  style =" background-image :url('../images/hit_bg.gif');"> 
<% 
  Response .ExpiresAbsolute=System.DateTime.Now. AddSeconds(-1);
  Response.Expires=0;
  Response.CacheControl = "no-cache";
%>
    <form id="form1" method ="post" runat="server">
    <input type="hidden" id="HOrgIDCol" runat ="server"  />
<table style ="width :98%;"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr style ="height :10;">
    <td></td>
 </tr> 
</table>

    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="327AC6">
      <tr style ="height :26px;">
        <td style ="width :15%;background-color :#F9F9FB;" align ="right"><label id="sjzx" runat ="server"  >上级菜单</label>&nbsp;</td>
        <td style ="width :35%;background-color :#F9F9FB;">
         <asp:DropDownList ID="OutPageID" TabIndex ="2" DataValueField ="ID"  DataTextField ="Label" runat="server" ></asp:DropDownList></td>
        <td style ="width :10%; background-color :#F9F9FB;" align ="right" >名称&nbsp;</td>
        <td style="width :40%; background-color :#F9F9FB;"><asp:TextBox ID="Label" Width ="200" runat ="server" TabIndex ="2" MaxLength ="50" ></asp:TextBox><font color="red">*</font></td>
      </tr>
      <tr style ="height :26px;">
        <td style ="background-color :#F9F9FB;" align ="right" >是否连接</td>
        <td style ="background-color :#F9F9FB;"><input type="checkbox" name="Continue" id="IFLink" checked ="checked" runat ="server" value="1" onclick ="if(this.checked==true){DivLink.style.display='';} else{DivLink.style.display='none';}"/></td>
        <td style ="background-color :#F9F9FB;" align ="right" >连接&nbsp;</td>
        <td style ="background-color :#F9F9FB;"><div id="DivLink" ><asp:TextBox ID="Link" Width ="200"  runat ="server" TabIndex ="4"  ></asp:TextBox></div></td>
      </tr>
      <tr style ="height :26px;">
        <td style ="background-color :#F9F9FB;" align ="right">排序号</td>
        <td style ="background-color :#F9F9FB;"><asp:TextBox ID="Dorder" Width ="140" MaxLength ="8" onkeyup="JudgeIsNaN(this)" runat ="server" TabIndex ="4"  ></asp:TextBox></td>
        <td style ="background-color :#F9F9FB;" align ="right">状态&nbsp;</td>
        <td style ="background-color :#F9F9FB;">
           <asp:dropdownlist id="Effective" tabIndex="6" runat="server" Enabled="true" Width="60px">
			 <asp:ListItem Value="1" Selected ="true" >是</asp:ListItem>
			 <asp:ListItem Value="0">否</asp:ListItem>
		  </asp:dropdownlist>
        </td>
       </tr>
       </table>       
      <table  width="95%" border="0" cellpadding="5" cellspacing="0" align="center" >
      <tr><td width="20%"></td>
        <td>
            <input id="GrantBtn1" type="submit" runat ="server" class ="button03" tabindex ="8" value ="提交(S)" accesskey ="s" onserverclick="GrantBtn1_ServerClick"/> &nbsp;&nbsp;
            <input type ="button" id="backBtn" value ="返回(C)" accesskey ="c"  class="button03" tabindex ="9" onclick ="window.close();" /></td>
      </tr>
    </table>
          <input type="hidden" id="HEditType" runat ="server" />
          <input type="hidden" id="HPageID" runat ="server"  />
          <input type="hidden" id="HOldPageID" runat ="server"  />
          <input type="hidden" id="HOldParentID" runat ="server"  />
          <input type="hidden" id="HLevelCode" runat ="server"  />

          <input type="hidden" id="HsLayer" runat ="server" />
    </form>
    <script language ="javascript" type ="text/javascript" >
     <!--     
      //人员选择
     -->
    </script>
    
    <script language ="javascript" type="text/javascript" >


    <!--
    //debugger;
      var sData = dialogArguments;
      form1.HEditType.value = sData.stype ;
      var sobj = sData.RoleForm.Hcode.value;  
      var ary=sobj.split('^');

      form1.HLevelCode.value = trim(ary[9]);

      if(sData.stype == "2")  // 2 修改 1 新建
      {
        form1.HPageID.value = trim(ary[0]);
        form1.HOldPageID.value = trim(ary[0]);
        
        form1.OutPageID.value = trim(ary[1]);
        form1.HOldParentID.value = trim(ary[1]);
        
        form1.Label.value = trim(ary[3]);
        
        if(trim(ary[4]) == "1")
        {
            form1.IFLink.checked = true;
            form1.Link.value = trim(ary[5]);
        }
        else
        {
            form1.IFLink.checked = false;
            form1.Link.value = "";
        }
        
        form1.HsLayer.value = trim(ary[6]);
        form1.Dorder.value = trim(ary[7]);        
        form1.Effective.value = trim(ary[8]);    
      }
      else if(sData.stype == "1")
       {
         /* if(trim(ary[1]) == "" || trim(ary[1]) == null || trim(ary[1]) == "undefined")          
          {
            form1.ChoiceName_1.value = "顶级结点";
          }
          else
          {
            form1.ChoiceName_1.value = trim(ary[1]);
            form1.HChoiceID_1.value = trim(ary[0]);
          }*/
          if(trim(ary[0]) == "")
          {
            form1.OutPageID.value ="0";
          }
          else
          {
            form1.OutPageID.value = trim(ary[0]);
          }  
       }       
   -->
    </script>    
</body>
</html>
